import { Controller, Get, Query } from '@nestjs/common';
import { AppService } from './app.service';

@Controller('home')
export class AppController {
  constructor(private readonly appService: AppService) { }

  @Get()
  searchData(@Query() query): Array<string> {
    const { title } = query;
    return this.appService.getHello(title);
  }
}
